"""
URL configuration for management project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from . import views
from ManageApp.src.view import account, myadmin, departments, number, order, task, user,ajax
urlpatterns = [
    path('', views.index, name='index'),
    path('login/', account.login, name='login'),
    path('logout/', account.logout, name='logout'),
    path('myadmin/list/', myadmin.myadmin_list),
    path('myadmin/add/', myadmin.myadmin_add),
    path('depart/list/', departments.depart_list),
    path('depart/<int:nid>/edit/', departments.depart_edit),
    path('depart/delete/', departments.depart_delete),
    path('depart/add/', departments.depart_add),
    path('numbers/list/', number.number_list),
    path('numbers/<int:nid>/edit/', number.number_edit),
    path('numbers/add/', number.number_add),
    path('order/list/', order.order_list),
    path('task/list/', task.task_list),
    path('task/add/', task.task_add),
    path('task/ajax/', task.task_ajax),
    path('user/list/', user.user_list),
    path('user/add/', user.user_add),
    path('user/delete/', user.user_delete),
    path('user/<int:nid>/edit/', user.user_edit),
    path('user/hint/', ajax.hint_user),
]
